﻿using MX.Core.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UserCenter.Api.Core
{
    public class ApiConfig : FileConfiguration
    {
        static public ApiConfig Default { get; private set; }

        static ApiConfig()
        {
            Default = From<ApiConfig>("api.config");

        }


        private ApiConfig() { }


        public string ResHost
        {
            get
            {
                return GetData<string>("ResHost");
            }
            set
            {
                SetData("ResHost", value);
            }
        }

        public string DefaultAvaterUrl
        {
            get
            {
                return GetData<string>("DefaultAvaterUrl");
            }
            set
            {
                SetData("DefaultAvaterUrl", value);
            }
        }



        public int CountLayer
        {
            get
            {
                return GetData<int>("CountLayer");
            }
            set
            {
                SetData("CountLayer", value);
            }
        }

        public string TestAccount
        {
            get
            {
                return GetData<string>("TestAccount");
            }
            set
            {
                SetData("TestAccount", value);
            }
        }
    }
}
